import {options, tree} from './defaultOptions'

export default [
  {
    type: 'input',
    title: '文本框',
    col:24,
    labelWidth:'100px',
    props: {}
  },
  {
    type: 'input',
    title: '多行文本',
    col:24,
    labelWidth:'100px',
    props: {
      type: 'textarea',
      rows: 3
    }
  },
  {
    type: 'radio',
    title: '单选框',
    col:24,
    labelWidth:'100px',
    props: {},
    options: options
  },
  {
    type: 'checkbox',
    title: '多选框',
    col:24,
    labelWidth:'100px',
    props: {
      value:[]
    },
    value:[],
    options: options
  },
  {
    type: 'switch',
    title: '开关',
    col:24,
    labelWidth:'100px',
    props: {
      value: false
    }
  },
  {
    type: 'select',
    title: '下拉框',
    col:24,
    labelWidth:'100px',
    props: {},
    options: options
  },
  {
    type: 'date',
    title: '日期',
    col:24,
    labelWidth:'100px',
    props: {}
  },
  {
    type: 'time',
    title: '时间',
    col:24,
    labelWidth:'100px',
    props: {}
  },
  {
    type: 'cascader',
    title: '级联',
    col:24,
    labelWidth:'100px',
    props: {},
    options: tree,
    value: []
  },
  {
    type: 'tree',
    title: '下拉树',
    col:24,
    labelWidth:'100px',
    props: {},
    options: tree,
    value: []
  },
  {
    type: 'number',
    title: '数字',
    col:24,
    labelWidth:'100px',
    props: {}
  },
  {
    type: 'rate',
    title: '评分',
    col:24,
    labelWidth:'100px',
    props: {
      value: 3
    },
    
  },
  {
    type: 'slider',
    title: '滑块',
    col:24,
    labelWidth:'100px',
    props: {},
    value: 1
  },
  {
    type: 'upload',
    title: '上传',
    col:24,
    labelWidth:'100px',
    value:'',
    props: {
      action: '',
      autoUpload:false,
      limit:1,
      isPrivate:1,
      UploadType:'img'
    }
  },
  {
    type: 'range',
    title: '范围',
    col:24,
    labelWidth:'100px',
    props: {
      value:['','']
    },
    value:['','']
  },
  {
    type: 'tag',
    title: '标签',
    col:24,
    labelWidth:'100px',
    props: {}
  },
  {
    type: 'inputTag',
    title: '标签框',
    col:24,
    labelWidth:'100px',
    props: {}
  },
  {
    type: 'color',
    title: '颜色',
    col:24,
    labelWidth:'100px',
    props: {}
  },
  {
    type: 'iconInput',
    title: '图标框',
    col:24,
    labelWidth:'100px',
    props: {}
  },
  {
    type: 'checkTree',
    title: '树形控件',
    col:24,
    labelWidth:'100px',
    props: {},
    options: tree,
    value: []
  },
  {
    type: 'aliasInput',
    title: '标题别名',
    col:24,
    labelWidth:'100px',
    groups:[
      {
        type: 'input',
        title: '文本框',
        col:24,
        labelWidth:'100px',
        props: {},
        prop:'fdsafdsa'
      },
    ],
    props: {},
  },
  {
    type: 'editor',
    title: '富文本',
    col:24,
    labelWidth:'100px',
    props: {}
  },
  {
    type: 'locationInput',
    title: '腾讯定位',
    col:24,
    labelWidth:'100px',
    props: {},
  },
  {
    type: 'divider',
    title: '分隔线',
    col:24,
    labelWidth:'100px',
    helper: true,
    props: {
      content: '分割线'
    }
  },
  {
    type: 'addFieldInput',
    title: '增长字段框',
    col:24,
    labelWidth:'100px',
    props: {
      width:'300px',
      append:'金额：'
    }
  },
  {
    type: 'button',
    title: '按钮',
    col:24,
    labelWidth:'100px',
    props: {
      value:'按钮'
    }
  },
  {
    type: 'label',
    title: '文本',
    col:24,
    labelWidth:'100px',
    props: {
      
    }
  },
  {
    type: 'labelButton',
    title: '按钮文本',
    col:24,
    labelWidth:'100px',
    props: {
      
    }
  },
  {
    type: 'addInput',
    title: '增加表单框',
    col:24,
    labelWidth:'100px',
    props: {
      value:['']
    }
  },
  {
    type: 'attrInput',
    title: '扩展属性框',
    col:24,
    labelWidth:'100px',
    props: {
      value:[]
    }
  },
  {
    type: 'spec',
    title: '规格表单',
    col:24,
    labelWidth:'100px',
    props: {
      value:{
        spec:[],
        tableData:[]
      }
    }
  },
  {
    type: 'addInputSelect',
    title: '增加输入框带选择框',
    col:24,
    labelWidth:'100px',
    props: {
      value:[]
    }
  },
  {
    type: 'ercode',
    title: '二维码',
    col:24,
    labelWidth:'100px',
    props: {
      value:''
    }
  },
  {
    type: 'image',
    title: '图片',
    col:24,
    labelWidth:'100px',
    props: {
      value:''
    }
  },
]

